<?php

namespace app\common\validate\Airline;
use think\Validate;

class Uav extends Validate
{
    // 验证规则
    protected $rule = [
        'ucode' => ['require','unique:uav'],
        'uavtype_id' => ['require'],
        'status' => ['require'],
        'organization' => ['require'],
        'is_sl' => ['require'],
        'is_sy' => ['require'],
        'is_del' => ['require']
    ];

    // 错误提示信息
    protected $message = [
        'ucode.require' => '无人机编码必填',
        'uavtype_id.require' => '无人机型号必填',
        'status.require' => '无人机状态必填',
        'organization.require' => '所属组织必填',
        'is_sl.require' => '是否上链必填',
        'is_sy.require' => '是否上云必填',
        'is_del.require' => '是否删除必填'
    ];

    // 验证场景
    protected $scene = [
    ];
}
